<!doctype html>
<html lang="ru" data-bs-theme="dark">

<head>
    <!-- 2024-05-11 14:13:08 -->
        <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>Git - gitdiffcore</title>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css" integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css" integrity="sha512-dPXYcDub/aeb08c63jRq/k6GaKccl256JQy/AnOq7CAnEZ9FzSL9wSbcZkMp4R26vBsMLFYH4kQ67/bbV8XaCQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css" integrity="sha512-rO+olRTkcf304DQBxSWxln8JXCzTHlKnIdnMUwYvQa9/Jd4cQaNkItIUj6Z4nvW1dqK0SKXLbn9h4KwZTNtAyw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/7.1.0/css/flag-icons.min.css" integrity="sha512-bZBu2H0+FGFz/stDN/L0k8J0G8qVsAL0ht1qg5kTwtAheiXwiRKyCq1frwfbSFSJN3jooR5kauE0YjtPzhZtJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link href="../../../runebook.css" rel="stylesheet" type="text/css">
    <meta name="x-github" content="https://github.com/runebookdev/runebook">
            <meta name="x-i18n-doc" content="git">
        <script>
        function i18n(element) {
            // NOP
        }
    </script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/3.0.5/js.cookie.js" integrity="sha512-F/dia2jKME12jwqiYDayeD+Rr/8jTWUD2wfbuJB0bzSwenSEnXsn4qQ/wVyXUCix5bmCAj8xJdtFr2OqUtjLAw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js" integrity="sha512-7Pi/otdlbbCR+LnW+F7PwFcSDJOuUJB3OxtEHbg4vSMvzvJjde4Po1v4BR9Gdc9aXNUNFVUY+SK51wWT8WF0Gg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/7.8.1/rxjs.umd.min.js" integrity="sha512-D9LDs8YUUVa4V9Gl4Zb+xqRAc7RCzooR3+zzebgK2RMu/KU+dh90pbjEEMzPiSyRSGbSp9j1pZnrO4joGa5WEg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.min.js" integrity="sha512-mhbv5DqBMgrWL+32MmsDOt/OAvqr/cHimk6B8y/bx/xS88MVkYGPiVv2ixKVrkywF2qHplNRUvFsAHUdxZ3Krg==" crossorigin="anonymous"></script>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6424571640879890" crossorigin="anonymous"></script>    <script async src="https://www.googletagmanager.com/gtag/js?id=G-3G5BZ1QEDP"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
        dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'G-3G5BZ1QEDP');
</script>    <script>
(function(c, l, a, r, i, t, y) {
    c[a] = c[a] || function() {
        (c[a].q = c[a].q || []).push(arguments)
    };
    t = l.createElement(r);
    t.async = 1;
    t.src = "https://www.clarity.ms/tag/" + i + "?ref=bwt";
    y = l.getElementsByTagName(r)[0];
    y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "jto2hd94r9");
</script>    <script src="../../../theme.js"></script>
</head>

<body>
    <header class="bg-black">
        <div class="container">
            <div class="row">
                <div class="col">
                    <nav class="navbar navbar-expand-lg navbar-dark">
                        <a class="navbar-brand fw-bold" href="https://runebook.dev/ru">
                            <img alt="Runebook.dev" class="d-inline-block align-top mr-1" src="../../../assets/runebook_logo.webp" width="24" height="24">
                            Runebook.dev
                        </a>
                        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                            <span class="navbar-toggler-icon"></span>
                        </button>
                        <div class="collapse navbar-collapse" id="navbarSupportedContent">
                            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/ru#docs">Documentation</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/contributors">Contributors</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://github.com/runebookdev/runebook/issues">GitHub</a>
                                </li>
                            </ul>
                                                                                                <button class="btn btn-success ms-2" id="showPopupButton">
                                        <i class="bi bi-translate"></i>
                                        Show English
                                    </button>
                                                                                        <div class="form-check form-switch ms-3">
                                <label class="text-light">
                                    <input class="form-check-input" type="checkbox" role="switch" id="theme-switch" checked>
                                    <i class="bi bi-moon-stars-fill"></i>
                                </label>
                            </div>
                        </div>
                    </nav>
                </div>
            </div>
        </div>
    </header>

    <!--sse-->
    <div class="container">
    <div class="row">
        <div class="col">
            <nav aria-label="breadcrumb" class="mt-2">
                <ol class="breadcrumb mb-1">
                    <li class="breadcrumb-item">
                        <a href="https://runebook.dev/ru#docs">
                            <span class="fi fi-ru"></span>                            Русский                        </a>
                    </li>
                    <li class="breadcrumb-item">
                        <a href="-index-.html">
                            Git                            2.43                        </a>
                    </li>
                                            <li class="breadcrumb-item">
                            <a href="-index-.html#Miscellaneous">
                                Miscellaneous                            </a>
                        </li>
                                    </ol>
            </nav>
        </div>
    </div>
    <br>

    <div class="row">
        <div class="col-md-9">
            <main>
                <article>

                    
                    <h1 class="text-body-emphasis" ><span data-i18n="7042448a0fbacdbe13bd7b2207fd74d3ad20ce8c99c83b3c73cd7027d7f21bbf/cd" data-source="gitdiffcore" onmousemove="i18n(this)">gitdiffcore</span></h1> <h2 class="text-body-emphasis"  id="_name"><span data-i18n="dcd1d5223f73b3a965c07e3ff5dbee3eedcfedb806686a05b9b3868a2c3d6d50/3a" data-source="Name" onmousemove="i18n(this)">Name</span></h2> <div> <p><span data-i18n="cafbd6c09036f08a176bb747c93ea454e352298033347be1d91c160f7ac8c522/66" data-source="gitdiffcore - Tweaking diff output" onmousemove="i18n(this)">gitdiffcore &mdash; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&jcy;&kcy;&acy; &vcy;&ycy;&vcy;&ocy;&dcy;&acy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&jcy;</span></p> </div> <h2 class="text-body-emphasis"  id="_synopsis"><span data-i18n="8eb3755381519d7f0479d75446e56e20084834c0460d7ec94926932372ea6c47/0d" data-source="Synopsis" onmousemove="i18n(this)">Synopsis</span></h2> <div> <div> <pre class="hljs language-undefined">git diff *</pre> </div> </div> <h2 class="text-body-emphasis"  id="_description"><span data-i18n="526e0087cc3f254d9f86f6c7d8e23d954c4dfda2b312efc29194ae8a860106ba/d3" data-source="Description" onmousemove="i18n(this)">Description</span></h2> <div> <p><span data-i18n="471484b3e3de3b25c9f8a95b9580c456f3c0e5a00094ebb2f9b3aa927b41f62a/16" data-source="The diff commands &lt;code&gt;git diff-index&lt;/code&gt;, &lt;code&gt;git diff-files&lt;/code&gt;, and &lt;code&gt;git diff-tree&lt;/code&gt; can be told to manipulate differences they find in unconventional ways before showing &lt;code&gt;diff&lt;/code&gt; output. The manipulation is collectively called &amp;quot;diffcore transformation&amp;quot;. This short note describes what they are and how to use them to produce &lt;code&gt;diff&lt;/code&gt; output that is easier to understand than the conventional kind." onmousemove="i18n(this)">&Kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;&mcy; diff  <code>git diff-index</code>  ,  <code>git diff-files</code>  &icy;  <code>git diff-tree</code>  &mcy;&ocy;&zhcy;&ncy;&ocy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &mcy;&acy;&ncy;&icy;&pcy;&ucy;&lcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &ncy;&acy;&jcy;&dcy;&iecy;&ncy;&ncy;&ycy;&mcy;&icy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&yacy;&mcy;&icy; &ncy;&iecy;&tcy;&rcy;&acy;&dcy;&icy;&tscy;&icy;&ocy;&ncy;&ncy;&ycy;&mcy;&icy; &scy;&pcy;&ocy;&scy;&ocy;&bcy;&acy;&mcy;&icy; &pcy;&iecy;&rcy;&iecy;&dcy; &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zhcy;&iecy;&ncy;&icy;&iecy;&mcy; &vcy;&ycy;&vcy;&ocy;&dcy;&acy;  <code>diff</code> . &Mcy;&acy;&ncy;&icy;&pcy;&ucy;&lcy;&yacy;&tscy;&icy;&yacy; &icy;&mcy;&iecy;&iecy;&tcy; &ocy;&bcy;&shchcy;&iecy;&iecy; &ncy;&acy;&zcy;&vcy;&acy;&ncy;&icy;&iecy;  &quot;diffcore transformation&quot; . &Vcy; &ecy;&tcy;&ocy;&jcy; &kcy;&ocy;&rcy;&ocy;&tcy;&kcy;&ocy;&jcy; &zcy;&acy;&mcy;&iecy;&tcy;&kcy;&iecy; &ocy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;, &chcy;&tcy;&ocy; &ecy;&tcy;&ocy; &tcy;&acy;&kcy;&ocy;&iecy; &icy; &kcy;&acy;&kcy; &icy;&khcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&lcy;&yacy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&yacy; &vcy;&ycy;&khcy;&ocy;&dcy;&ncy;&ycy;&khcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;  <code>diff</code> , &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &lcy;&iecy;&gcy;&chcy;&iecy; &pcy;&ocy;&ncy;&yacy;&tcy;&softcy;, &chcy;&iecy;&mcy; &ocy;&bcy;&ycy;&chcy;&ncy;&ycy;&iecy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_the_chain_of_operation"><span data-i18n="37f60d9dfc0aa9a723e42fd754eb83ae9edd185a5b2de8a693f77e8d4799a3b4/64" data-source="The chain of operation" onmousemove="i18n(this)">&TScy;&iecy;&pcy;&ocy;&chcy;&kcy;&acy; &ocy;&pcy;&iecy;&rcy;&acy;&tscy;&icy;&jcy;</span></h2> <div> <p><span data-i18n="ce9b9a3942c6c5d991acaca01e9f1cd9cf31405f9cf4b548796507f22fcd9a8f/d1" data-source="The &lt;code&gt;git diff-*&lt;/code&gt; family works by first comparing two sets of files:" onmousemove="i18n(this)">&Scy;&iecy;&mcy;&iecy;&jcy;&scy;&tcy;&vcy;&ocy;  <code>git diff-*</code>  &rcy;&acy;&bcy;&ocy;&tcy;&acy;&iecy;&tcy;, &scy;&ncy;&acy;&chcy;&acy;&lcy;&acy; &scy;&rcy;&acy;&vcy;&ncy;&icy;&vcy;&acy;&yacy; &dcy;&vcy;&acy; &ncy;&acy;&bcy;&ocy;&rcy;&acy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;:</span></p> <div> <ul> <li> <p><span data-i18n="34630f690730f1ca29a088db47f412291600e1933918fc1e43354c17ed6c2bea/bb" data-source="&lt;code&gt;git diff-index&lt;/code&gt; compares contents of a &amp;quot;tree&amp;quot; object and the working directory (when &lt;code&gt;--cached&lt;/code&gt; flag is not used) or a &amp;quot;tree&amp;quot; object and the index file (when &lt;code&gt;--cached&lt;/code&gt; flag is used);" onmousemove="i18n(this)"><code>git diff-index</code>  &scy;&rcy;&acy;&vcy;&ncy;&icy;&vcy;&acy;&iecy;&tcy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;  &quot;tree&quot;  &icy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy; (&kcy;&ocy;&gcy;&dcy;&acy; &fcy;&lcy;&acy;&gcy;  <code>--cached</code>  &ncy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy;) &icy;&lcy;&icy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;  &quot;tree&quot;  &icy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&ncy;&ocy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&acy; (&kcy;&ocy;&gcy;&dcy;&acy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &fcy;&lcy;&acy;&gcy;  <code>--cached</code> );</span></p> </li> <li> <p><span data-i18n="69646c2c241ab2f7083e3c3cef27d4db9710c0ec62cc6c03213db1dbe9e3cbe6/72" data-source="&lt;code&gt;git diff-files&lt;/code&gt; compares contents of the index file and the working directory;" onmousemove="i18n(this)"><code>git diff-files</code>  &scy;&rcy;&acy;&vcy;&ncy;&icy;&vcy;&acy;&iecy;&tcy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&ncy;&ocy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&acy; &icy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy;;</span></p> </li> <li> <p><span data-i18n="c96fa0d2201411e19f55790babe27d7c7bfa6455f7deb427fb931576a1bc714f/ea" data-source="&lt;code&gt;git diff-tree&lt;/code&gt; compares contents of two &amp;quot;tree&amp;quot; objects;" onmousemove="i18n(this)"><code>git diff-tree</code>  &scy;&rcy;&acy;&vcy;&ncy;&icy;&vcy;&acy;&iecy;&tcy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &dcy;&vcy;&ucy;&khcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy;  &quot;tree&quot; ;</span></p> </li> </ul> </div> <p><span data-i18n="9ea06c8544654b18232fa176eb37c7fdd08d42fed0042ee6616dc5c14a070919/62" data-source="In all of these cases, the commands themselves first optionally limit the two sets of files by any pathspecs given on their command-lines, and compare corresponding paths in the two resulting sets of files." onmousemove="i18n(this)">&Vcy;&ocy; &vcy;&scy;&iecy;&khcy; &ecy;&tcy;&icy;&khcy; &scy;&lcy;&ucy;&chcy;&acy;&yacy;&khcy; &scy;&acy;&mcy;&icy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; &scy;&ncy;&acy;&chcy;&acy;&lcy;&acy; &ocy;&pcy;&tscy;&icy;&ocy;&ncy;&acy;&lcy;&softcy;&ncy;&ocy; &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&icy;&vcy;&acy;&yucy;&tcy; &dcy;&vcy;&acy; &ncy;&acy;&bcy;&ocy;&rcy;&acy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &lcy;&yucy;&bcy;&ycy;&mcy;&icy; &pcy;&ucy;&tcy;&yacy;&mcy;&icy;, &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ycy;&mcy;&icy; &vcy; &icy;&khcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ncy;&ycy;&khcy; &scy;&tcy;&rcy;&ocy;&kcy;&acy;&khcy;, &icy; &scy;&rcy;&acy;&vcy;&ncy;&icy;&vcy;&acy;&yucy;&tcy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&iecy; &pcy;&ucy;&tcy;&icy; &vcy; &dcy;&vcy;&ucy;&khcy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&icy;&rcy;&ucy;&yucy;&shchcy;&icy;&khcy; &ncy;&acy;&bcy;&ocy;&rcy;&acy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;.</span></p> <p><span data-i18n="dcd33579e7462bbad0a4c83163058c5199a2ad087583519be892f68c49f5d67a/c7" data-source="The pathspecs are used to limit the world diff operates in. They remove the filepairs outside the specified sets of pathnames. E.g. If the input set of filepairs included:" onmousemove="i18n(this)">&Scy;&pcy;&iecy;&tscy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&icy; &pcy;&ucy;&tcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&iecy;&ncy;&icy;&yacy; &mcy;&icy;&rcy;&acy;, &vcy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&mcy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&iecy;&tcy; diff. &Ocy;&ncy;&icy; &ucy;&dcy;&acy;&lcy;&yacy;&yucy;&tcy; &pcy;&acy;&rcy;&ycy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &zcy;&acy; &pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&acy;&mcy;&icy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ycy;&khcy; &ncy;&acy;&bcy;&ocy;&rcy;&ocy;&vcy; &icy;&mcy;&iecy;&ncy; &pcy;&ucy;&tcy;&iecy;&jcy;. &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &iecy;&scy;&lcy;&icy; &vcy;&khcy;&ocy;&dcy;&ncy;&ocy;&jcy; &ncy;&acy;&bcy;&ocy;&rcy; &pcy;&acy;&rcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&lcy;:</span></p> <div> <div> <pre class="hljs language-undefined">:100644 100644 bcd1234... 0123456... M junkfile</pre> </div> </div> <p><span data-i18n="888b3609ee61f24ab52bf4c3a9b4fb74624923d1666e83e65718bba4d353b2e0/9f" data-source="but the command invocation was &lt;code&gt;git diff-files myfile&lt;/code&gt;, then the junkfile entry would be removed from the list because only &amp;quot;myfile&amp;quot; is under consideration." onmousemove="i18n(this)">&ncy;&ocy; &vcy;&ycy;&zcy;&ocy;&vcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; &bcy;&ycy;&lcy;  <code>git diff-files myfile</code>  , &tcy;&ocy; &zcy;&acy;&pcy;&icy;&scy;&softcy; &ncy;&iecy;&ncy;&ucy;&zhcy;&ncy;&ocy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&acy; &bcy;&ucy;&dcy;&iecy;&tcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&acy; &icy;&zcy; &scy;&pcy;&icy;&scy;&kcy;&acy;, &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &rcy;&acy;&scy;&scy;&mcy;&acy;&tcy;&rcy;&icy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy;  &quot;myfile&quot; .</span></p> <p><span data-i18n="e5a70a6bc6492767e23a69f6646b05d0a3078b79f2bd600973ed33b2f6714836/19" data-source="The result of comparison is passed from these commands to what is internally called &amp;quot;diffcore&amp;quot;, in a format similar to what is output when the -p option is not used. E.g." onmousemove="i18n(this)">&Rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy; &scy;&rcy;&acy;&vcy;&ncy;&iecy;&ncy;&icy;&yacy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&iecy;&tcy;&scy;&yacy; &icy;&zcy; &ecy;&tcy;&icy;&khcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy; &vcy; &tcy;&ocy;, &chcy;&tcy;&ocy; &vcy;&ncy;&ucy;&tcy;&rcy;&icy; &ncy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  &quot;diffcore&quot; , &vcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy;, &acy;&ncy;&acy;&lcy;&ocy;&gcy;&icy;&chcy;&ncy;&ocy;&mcy; &tcy;&ocy;&mcy;&ucy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &vcy;&ycy;&vcy;&ocy;&dcy;&icy;&tcy;&scy;&yacy;, &kcy;&ocy;&gcy;&dcy;&acy; &ocy;&pcy;&tscy;&icy;&yacy; -p &ncy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy;. &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;</span></p> <div> <div> <pre class="hljs language-sql"><span class="hljs-keyword">in</span><span class="hljs-operator">-</span>place edit  :<span class="hljs-number">100644</span> <span class="hljs-number">100644</span> bcd1234... <span class="hljs-number">0123456.</span>.. M file0
<span class="hljs-keyword">create</span>         :<span class="hljs-number">000000</span> <span class="hljs-number">100644</span> <span class="hljs-number">0000000.</span>.. <span class="hljs-number">1234567.</span>.. A file4
<span class="hljs-keyword">delete</span>         :<span class="hljs-number">100644</span> <span class="hljs-number">000000</span> <span class="hljs-number">1234567.</span>.. <span class="hljs-number">0000000.</span>.. D file5
unmerged       :<span class="hljs-number">000000</span> <span class="hljs-number">000000</span> <span class="hljs-number">0000000.</span>.. <span class="hljs-number">0000000.</span>.. U file6</pre> </div> </div> <p><span data-i18n="4e042ec0d1a79dace5015faeafd6fbf3c5191b75293382860d400cfc3d6afb52/7f" data-source="The diffcore mechanism is fed a list of such comparison results (each of which is called &amp;quot;filepair&amp;quot;, although at this point each of them talks about a single file), and transforms such a list into another list. There are currently 5 such transformations:" onmousemove="i18n(this)">&Mcy;&iecy;&khcy;&acy;&ncy;&icy;&zcy;&mcy;&ucy; diffcore &pcy;&ocy;&dcy;&acy;&iecy;&tcy;&scy;&yacy; &scy;&pcy;&icy;&scy;&ocy;&kcy; &tcy;&acy;&kcy;&icy;&khcy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&ocy;&vcy; &scy;&rcy;&acy;&vcy;&ncy;&iecy;&ncy;&icy;&yacy; (&kcy;&acy;&zhcy;&dcy;&ycy;&jcy; &icy;&zcy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy; &ncy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  &quot;filepair&quot; , &khcy;&ocy;&tcy;&yacy; &ncy;&acy; &dcy;&acy;&ncy;&ncy;&ycy;&jcy; &mcy;&ocy;&mcy;&iecy;&ncy;&tcy; &kcy;&acy;&zhcy;&dcy;&ycy;&jcy; &icy;&zcy; &ncy;&icy;&khcy; &gcy;&ocy;&vcy;&ocy;&rcy;&icy;&tcy; &ocy;&bcy; &ocy;&dcy;&ncy;&ocy;&mcy; &fcy;&acy;&jcy;&lcy;&iecy;) &icy; &pcy;&rcy;&iecy;&ocy;&bcy;&rcy;&acy;&zcy;&ucy;&iecy;&tcy; &tcy;&acy;&kcy;&ocy;&jcy; &scy;&pcy;&icy;&scy;&ocy;&kcy; &vcy; &dcy;&rcy;&ucy;&gcy;&ocy;&jcy; &scy;&pcy;&icy;&scy;&ocy;&kcy;. &Ncy;&acy; &dcy;&acy;&ncy;&ncy;&ycy;&jcy; &mcy;&ocy;&mcy;&iecy;&ncy;&tcy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; 5 &tcy;&acy;&kcy;&icy;&khcy; &pcy;&rcy;&iecy;&ocy;&bcy;&rcy;&acy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&jcy;:</span></p> <div> <ul> <li> <p><span data-i18n="371ba5cde1a2864654319c8f7bc9c76ac5dc1f245cc191be67af0a4e7e70b0b3/06" data-source="diffcore-break" onmousemove="i18n(this)">diffcore-break</span></p> </li> <li> <p><span data-i18n="cb1f4157b86b3ef4a623d03f527f6c09e1cdc6fde07e0c6e11de3b76f29aa77a/1f" data-source="diffcore-rename" onmousemove="i18n(this)">diffcore-rename</span></p> </li> <li> <p><span data-i18n="b9ad43a8a20aaa7272fd83c435b6cb04242339f3499101deca788c199f63c1ff/c2" data-source="diffcore-merge-broken" onmousemove="i18n(this)">diffcore-merge-broken</span></p> </li> <li> <p><span data-i18n="93f44011865792332751b825e19e38f699a3b64d13a3564df7328ed359d15dc2/35" data-source="diffcore-pickaxe" onmousemove="i18n(this)">diffcore-pickaxe</span></p> </li> <li> <p><span data-i18n="a81bb57ecf9c53feb35d096e73173023ffbdd4a6bb84319a31488589fd7d94dc/52" data-source="diffcore-order" onmousemove="i18n(this)">diffcore-order</span></p> </li> <li> <p><span data-i18n="ee9867fdb95f11e7ba7b607e7d8186b8f01f8ea314313da5ad8d945c43390d84/fc" data-source="diffcore-rotate" onmousemove="i18n(this)">diffcore-rotate</span></p> </li> </ul> </div> <p><span data-i18n="3decc470a15ee37c3c1801452580b97234be09b0d28eda5f582d913c726a1f45/26" data-source="These are applied in sequence. The set of filepairs &lt;code&gt;git diff-*&lt;/code&gt; commands find are used as the input to diffcore-break, and the output from diffcore-break is used as the input to the next transformation. The final result is then passed to the output routine and generates either diff-raw format (see Output format sections of the manual for &lt;code&gt;git diff-*&lt;/code&gt; commands) or diff-patch format." onmousemove="i18n(this)">&Ocy;&ncy;&icy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&yacy;&yucy;&tcy;&scy;&yacy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;. &Ncy;&acy;&bcy;&ocy;&rcy; &pcy;&acy;&rcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;  <code>git diff-*</code>  &scy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;&mcy;&icy; find &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &vcy;&khcy;&ocy;&dcy;&ncy;&ycy;&khcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &dcy;&lcy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; diffcore-break, &acy; &vcy;&ycy;&khcy;&ocy;&dcy;&ncy;&ycy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; diffcore-break &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy;&tcy;&scy;&yacy; &vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &vcy;&khcy;&ocy;&dcy;&ncy;&ycy;&khcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &dcy;&lcy;&yacy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&iecy;&gcy;&ocy; &pcy;&rcy;&iecy;&ocy;&bcy;&rcy;&acy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy;. &Kcy;&ocy;&ncy;&iecy;&chcy;&ncy;&ycy;&jcy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy; &zcy;&acy;&tcy;&iecy;&mcy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&iecy;&tcy;&scy;&yacy; &vcy; &pcy;&rcy;&ocy;&tscy;&iecy;&dcy;&ucy;&rcy;&ucy; &vcy;&ycy;&vcy;&ocy;&dcy;&acy; &icy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy; &lcy;&icy;&bcy;&ocy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy; diff-raw (&scy;&mcy;. &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&ycy; &laquo;&Fcy;&ocy;&rcy;&mcy;&acy;&tcy; &vcy;&ycy;&vcy;&ocy;&dcy;&acy;&raquo; &rcy;&ucy;&kcy;&ocy;&vcy;&ocy;&dcy;&scy;&tcy;&vcy;&acy; &dcy;&lcy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;  <code>git diff-*</code> ), &lcy;&icy;&bcy;&ocy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy; diff-patch.</span></p> </div> <h2 class="text-body-emphasis"  id="_diffcore_break_for_splitting_up_complete_rewrites"><span data-i18n="d0aa7b99f03a4d78b34ce74d2503c7ac99260d2c13fca84db5771d58c5520297/ce" data-source="Diffcore-break: for splitting up complete rewrites" onmousemove="i18n(this)">Diffcore-break: &dcy;&lcy;&yacy; &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&iecy;&ncy;&icy;&yacy; &pcy;&ocy;&lcy;&ncy;&ycy;&khcy; &pcy;&iecy;&rcy;&iecy;&zcy;&acy;&pcy;&icy;&scy;&iecy;&jcy;</span></h2> <div> <p><span data-i18n="ce4ee8fd6f580e9ad249e02e49da081900138ea1112294f739d355b8bf9bc3a8/b2" data-source="The second transformation in the chain is diffcore-break, and is controlled by the -B option to the &lt;code&gt;git diff-*&lt;/code&gt; commands. This is used to detect a filepair that represents &amp;quot;complete rewrite&amp;quot; and break such filepair into two filepairs that represent delete and create. E.g. If the input contained this filepair:" onmousemove="i18n(this)">&Vcy;&tcy;&ocy;&rcy;&ocy;&iecy; &pcy;&rcy;&iecy;&ocy;&bcy;&rcy;&acy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &vcy; &tscy;&iecy;&pcy;&ocy;&chcy;&kcy;&iecy; &mdash; diffcore-break &icy; &ucy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &ocy;&pcy;&tscy;&icy;&iecy;&jcy; -B &kcy;&ocy;&mcy;&acy;&ncy;&dcy;  <code>git diff-*</code> . &Ecy;&tcy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&yacy; &pcy;&acy;&rcy;&ycy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&yucy;&shchcy;&iecy;&jcy;  &quot;complete rewrite&quot; , &icy; &rcy;&acy;&zcy;&bcy;&icy;&iecy;&ncy;&icy;&yacy; &tcy;&acy;&kcy;&ocy;&jcy; &pcy;&acy;&rcy;&ycy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &ncy;&acy; &dcy;&vcy;&iecy; &pcy;&acy;&rcy;&ycy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&yucy;&tcy; &scy;&ocy;&bcy;&ocy;&jcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&iecy; &icy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&iecy;. &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &iecy;&scy;&lcy;&icy; &vcy;&khcy;&ocy;&dcy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&lcy; &ecy;&tcy;&ucy; &pcy;&acy;&rcy;&ucy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;:</span></p> <div> <div> <pre class="hljs language-undefined">:100644 100644 bcd1234... 0123456... M file0</pre> </div> </div> <p><span data-i18n="f84de34e93bbb6af005a7b738e434a29fce8ae42bc3e58cc874d5011a4817a91/da" data-source="and if it detects that the file &amp;quot;file0&amp;quot; is completely rewritten, it changes it to:" onmousemove="i18n(this)">&icy; &iecy;&scy;&lcy;&icy; &ocy;&ncy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&icy;&vcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &fcy;&acy;&jcy;&lcy;  &quot;file0&quot;  &pcy;&ocy;&lcy;&ncy;&ocy;&scy;&tcy;&softcy;&yucy; &pcy;&iecy;&rcy;&iecy;&zcy;&acy;&pcy;&icy;&scy;&acy;&ncy;, &ocy;&ncy; &mcy;&iecy;&ncy;&yacy;&iecy;&tcy; &iecy;&gcy;&ocy; &ncy;&acy;:</span></p> <div> <div> <pre class="hljs language-less">:<span class="hljs-number">100644</span> <span class="hljs-number">000000</span> <span class="hljs-selector-tag">bcd1234</span>... <span class="hljs-number">0000000</span>... <span class="hljs-selector-tag">D</span> <span class="hljs-selector-tag">file0</span>
:<span class="hljs-number">000000</span> <span class="hljs-number">100644</span> <span class="hljs-number">0000000</span>... <span class="hljs-number">0123456</span>... <span class="hljs-selector-tag">A</span> <span class="hljs-selector-tag">file0</span></pre> </div> </div> <p><span data-i18n="06682d4c45704f54dc2557e977ecf16bcaba0367984dc06ac492161d534bddda/22" data-source="For the purpose of breaking a filepair, diffcore-break examines the extent of changes between the contents of the files before and after modification (i.e. the contents that have &amp;quot;bcd1234&amp;hellip;&amp;ZeroWidthSpace;&amp;quot; and &amp;quot;0123456&amp;hellip;&amp;ZeroWidthSpace;&amp;quot; as their SHA-1 content ID, in the above example). The amount of deletion of original contents and insertion of new material are added together, and if it exceeds the &amp;quot;break score&amp;quot;, the filepair is broken into two. The break score defaults to 50% of the size of the smaller of the original and the result (i.e. if the edit shrinks the file, the size of the result is used; if the edit lengthens the file, the size of the original is used), and can be customized by giving a number after &amp;quot;-B&amp;quot; option (e.g. &amp;quot;-B75&amp;quot; to tell it to use 75%)." onmousemove="i18n(this)">&Scy; &tscy;&iecy;&lcy;&softcy;&yucy; &rcy;&acy;&zcy;&rcy;&ycy;&vcy;&acy; &pcy;&acy;&rcy;&ycy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; diffcore-break &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&yacy;&iecy;&tcy; &scy;&tcy;&iecy;&pcy;&iecy;&ncy;&softcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy; &mcy;&iecy;&zhcy;&dcy;&ucy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ycy;&mcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &dcy;&ocy; &icy; &pcy;&ocy;&scy;&lcy;&iecy; &mcy;&ocy;&dcy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&icy; (&tcy;. &iecy;. &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ycy;&mcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&iecy; &icy;&mcy;&iecy;&iecy;&tcy;  &quot;bcd1234&hellip;&ZeroWidthSpace;&quot;  &icy;  &quot;0123456&hellip;&ZeroWidthSpace;&quot;  &vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy;&acy; &kcy;&ocy;&ncy;&tcy;&iecy;&ncy;&tcy;&acy; SHA-1, &vcy; &pcy;&rcy;&icy;&vcy;&iecy;&dcy;&iecy;&ncy;&ncy;&ocy;&mcy; &vcy;&ycy;&shcy;&iecy; &pcy;&rcy;&icy;&mcy;&iecy;&rcy;&iecy;). &Kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&jcy; &icy;&scy;&khcy;&ocy;&dcy;&ncy;&ocy;&gcy;&ocy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&gcy;&ocy; &icy; &vcy;&scy;&tcy;&acy;&vcy;&kcy;&icy; &ncy;&ocy;&vcy;&ocy;&gcy;&ocy; &mcy;&acy;&tcy;&iecy;&rcy;&icy;&acy;&lcy;&acy; &scy;&ucy;&mcy;&mcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy;, &icy; &iecy;&scy;&lcy;&icy; &ocy;&ncy;&ocy; &pcy;&rcy;&iecy;&vcy;&ycy;&shcy;&acy;&iecy;&tcy;  &quot;break score&quot; , &pcy;&acy;&rcy;&acy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &rcy;&acy;&zcy;&bcy;&icy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &ncy;&acy; &dcy;&vcy;&iecy; &chcy;&acy;&scy;&tcy;&icy;. &Ocy;&tscy;&iecy;&ncy;&kcy;&acy; &rcy;&acy;&zcy;&rcy;&ycy;&vcy;&acy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &rcy;&acy;&vcy;&ncy;&acy; 50&nbsp;% &ocy;&tcy; &rcy;&acy;&zcy;&mcy;&iecy;&rcy;&acy; &mcy;&iecy;&ncy;&softcy;&shcy;&iecy;&gcy;&ocy; &rcy;&acy;&zcy;&mcy;&iecy;&rcy;&acy; &ocy;&rcy;&icy;&gcy;&icy;&ncy;&acy;&lcy;&acy; &icy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&acy; (&tcy;.&nbsp;&iecy;. &iecy;&scy;&lcy;&icy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &scy;&zhcy;&icy;&mcy;&acy;&iecy;&tcy; &fcy;&acy;&jcy;&lcy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &rcy;&acy;&zcy;&mcy;&iecy;&rcy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&acy;; &iecy;&scy;&lcy;&icy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &ucy;&dcy;&lcy;&icy;&ncy;&yacy;&iecy;&tcy; &fcy;&acy;&jcy;&lcy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &rcy;&acy;&zcy;&mcy;&iecy;&rcy; &ocy;&rcy;&icy;&gcy;&icy;&ncy;&acy;&lcy;&acy;). ), &icy; &iecy;&gcy;&ocy; &mcy;&ocy;&zhcy;&ncy;&ocy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&icy;&tcy;&softcy;, &ucy;&kcy;&acy;&zcy;&acy;&vcy; &chcy;&icy;&scy;&lcy;&ocy; &pcy;&ocy;&scy;&lcy;&iecy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy;  &quot;-B&quot;  (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;,  &quot;-B75&quot; , &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; 75%).</span></p> </div> <h2 class="text-body-emphasis"  id="_diffcore_rename_for_detecting_renames_and_copies"><span data-i18n="fa7102b4013ef2c368f68afe1c5b4f7b27dabd48c6c24ac36b639902bb9f74f1/a7" data-source="Diffcore-rename: for detecting renames and copies" onmousemove="i18n(this)">Diffcore-rename: &dcy;&lcy;&yacy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&yacy; &pcy;&iecy;&rcy;&iecy;&icy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&icy;&jcy; &icy; &kcy;&ocy;&pcy;&icy;&jcy;.</span></h2> <div> <p><span data-i18n="9eb70b563f5b979545116bfe2dba9c4b03cd30cbd3af14ea04d19fe7647b71cd/f3" data-source="This transformation is used to detect renames and copies, and is controlled by the -M option (to detect renames) and the -C option (to detect copies as well) to the &lt;code&gt;git diff-*&lt;/code&gt; commands. If the input contained these filepairs:" onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &pcy;&rcy;&iecy;&ocy;&bcy;&rcy;&acy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&yacy; &pcy;&iecy;&rcy;&iecy;&icy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&icy;&jcy; &icy; &kcy;&ocy;&pcy;&icy;&jcy; &icy; &kcy;&ocy;&ncy;&tcy;&rcy;&ocy;&lcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &ocy;&pcy;&tscy;&icy;&iecy;&jcy; -M (&dcy;&lcy;&yacy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&yacy; &pcy;&iecy;&rcy;&iecy;&icy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&icy;&jcy;) &icy; &ocy;&pcy;&tscy;&icy;&iecy;&jcy; -C (&tcy;&acy;&kcy;&zhcy;&iecy; &dcy;&lcy;&yacy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&yacy; &kcy;&ocy;&pcy;&icy;&jcy;) &kcy;&ocy;&mcy;&acy;&ncy;&dcy;  <code>git diff-*</code> . &IEcy;&scy;&lcy;&icy; &vcy;&khcy;&ocy;&dcy;&ncy;&ycy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&lcy;&icy; &ecy;&tcy;&icy; &pcy;&acy;&rcy;&ycy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;:</span></p> <div> <div> <pre class="hljs language-less">:<span class="hljs-number">100644</span> <span class="hljs-number">000000</span> <span class="hljs-number">0123456</span>... <span class="hljs-number">0000000</span>... <span class="hljs-selector-tag">D</span> <span class="hljs-selector-tag">fileX</span>
:<span class="hljs-number">000000</span> <span class="hljs-number">100644</span> <span class="hljs-number">0000000</span>... <span class="hljs-number">0123456</span>... <span class="hljs-selector-tag">A</span> <span class="hljs-selector-tag">file0</span></pre> </div> </div> <p><span data-i18n="84fa661914885cabb04e00cdc16dd565ea36a655f50962adee9c5a01a9837b1a/1f" data-source="and the contents of the deleted file fileX is similar enough to the contents of the created file file0, then rename detection merges these filepairs and creates:" onmousemove="i18n(this)">&icy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&acy; fileX &dcy;&ocy;&scy;&tcy;&acy;&tcy;&ocy;&chcy;&ncy;&ocy; &pcy;&ocy;&khcy;&ocy;&zhcy;&iecy; &ncy;&acy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&ncy;&ocy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&acy; file0, &zcy;&acy;&tcy;&iecy;&mcy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&iecy; &pcy;&iecy;&rcy;&iecy;&icy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&yacy;&iecy;&tcy; &ecy;&tcy;&icy; &pcy;&acy;&rcy;&ycy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &icy; &scy;&ocy;&zcy;&dcy;&acy;&iecy;&tcy;:</span></p> <div> <div> <pre class="hljs language-undefined">:100644 100644 0123456... 0123456... R100 fileX file0</pre> </div> </div> <p><span data-i18n="ffb35b48a9fbee2990803eabbfddd4e490ed81d1561c598e48697f41346b88a0/2d" data-source="When the &amp;quot;-C&amp;quot; option is used, the original contents of modified files, and deleted files (and also unmodified files, if the &amp;quot;--find-copies-harder&amp;quot; option is used) are considered as candidates of the source files in rename/copy operation. If the input were like these filepairs, that talk about a modified file fileY and a newly created file file0:" onmousemove="i18n(this)">&Pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &ocy;&pcy;&tscy;&icy;&icy;  &quot;-C&quot;  &icy;&scy;&khcy;&ocy;&dcy;&ncy;&ocy;&iecy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&ncy;&ycy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &icy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; (&acy; &tcy;&acy;&kcy;&zhcy;&iecy; &ncy;&iecy;&mcy;&ocy;&dcy;&icy;&fcy;&icy;&tscy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &iecy;&scy;&lcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &ocy;&pcy;&tscy;&icy;&yacy;  &quot;--find-copies-harder&quot; ) &rcy;&acy;&scy;&scy;&mcy;&acy;&tcy;&rcy;&icy;&vcy;&acy;&yucy;&tcy;&scy;&yacy; &kcy;&acy;&kcy; &kcy;&acy;&ncy;&dcy;&icy;&dcy;&acy;&tcy;&ycy; &icy;&scy;&khcy;&ocy;&dcy;&ncy;&ycy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &vcy; &ocy;&pcy;&iecy;&rcy;&acy;&tscy;&icy;&icy; &pcy;&iecy;&rcy;&iecy;&icy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&icy;&yacy;/&kcy;&ocy;&pcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy;. &IEcy;&scy;&lcy;&icy; &vcy;&khcy;&ocy;&dcy;&ncy;&ycy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &bcy;&ycy;&lcy;&icy; &pcy;&ocy;&khcy;&ocy;&zhcy;&icy; &ncy;&acy; &ecy;&tcy;&icy; &pcy;&acy;&rcy;&ycy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &ecy;&tcy;&ocy; &gcy;&ocy;&vcy;&ocy;&rcy;&icy;&tcy; &ocy;&bcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&ncy;&ocy;&mcy; &fcy;&acy;&jcy;&lcy;&iecy; fileY &icy; &vcy;&ncy;&ocy;&vcy;&softcy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&ncy;&ocy;&mcy; &fcy;&acy;&jcy;&lcy;&iecy; file0:</span></p> <div> <div> <pre class="hljs language-less">:<span class="hljs-number">100644</span> <span class="hljs-number">100644</span> <span class="hljs-number">0123456</span>... <span class="hljs-number">1234567</span>... <span class="hljs-selector-tag">M</span> <span class="hljs-selector-tag">fileY</span>
:<span class="hljs-number">000000</span> <span class="hljs-number">100644</span> <span class="hljs-number">0000000</span>... <span class="hljs-selector-tag">bcd3456</span>... <span class="hljs-selector-tag">A</span> <span class="hljs-selector-tag">file0</span></pre> </div> </div> <p><span data-i18n="a2061a60b88f055e974cbef55e1293634248c7169419999bf6b09df8122cbe98/8e" data-source="the original contents of fileY and the resulting contents of file0 are compared, and if they are similar enough, they are changed to:" onmousemove="i18n(this)">&icy;&scy;&khcy;&ocy;&dcy;&ncy;&ocy;&iecy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; fileY &icy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&icy;&rcy;&ucy;&yucy;&shchcy;&iecy;&iecy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; file0 &scy;&rcy;&acy;&vcy;&ncy;&icy;&vcy;&acy;&yucy;&tcy;&scy;&yacy;, &icy; &iecy;&scy;&lcy;&icy; &ocy;&ncy;&icy; &dcy;&ocy;&scy;&tcy;&acy;&tcy;&ocy;&chcy;&ncy;&ocy; &pcy;&ocy;&khcy;&ocy;&zhcy;&icy;, &ocy;&ncy;&icy; &zcy;&acy;&mcy;&iecy;&ncy;&yacy;&yucy;&tcy;&scy;&yacy; &ncy;&acy;:</span></p> <div> <div> <pre class="hljs language-undefined">:100644 100644 0123456... 1234567... M fileY
:100644 100644 0123456... bcd3456... C100 fileY file0</pre> </div> </div> <p><span data-i18n="15dbd51dcc4340e42e8a3e8645534b842a8a2ac6b362e4ba799cf04d455ba6de/32" data-source="In both rename and copy detection, the same &amp;quot;extent of changes&amp;quot; algorithm used in diffcore-break is used to determine if two files are &amp;quot;similar enough&amp;quot;, and can be customized to use a similarity score different from the default of 50% by giving a number after the &amp;quot;-M&amp;quot; or &amp;quot;-C&amp;quot; option (e.g. &amp;quot;-M8&amp;quot; to tell it to use 8/10 = 80%)." onmousemove="i18n(this)">&Kcy;&acy;&kcy; &pcy;&rcy;&icy; &pcy;&iecy;&rcy;&iecy;&icy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&icy;&icy;, &tcy;&acy;&kcy; &icy; &pcy;&rcy;&icy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&icy; &kcy;&ocy;&pcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &ocy;&dcy;&icy;&ncy; &icy; &tcy;&ocy;&tcy; &zhcy;&iecy; &acy;&lcy;&gcy;&ocy;&rcy;&icy;&tcy;&mcy;  &quot;extent of changes&quot; , &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&mcy;&ycy;&jcy; &vcy; diffcore-break, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&icy;&yacy; &tcy;&ocy;&gcy;&ocy;, &yacy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &lcy;&icy; &dcy;&vcy;&acy; &fcy;&acy;&jcy;&lcy;&acy;  &quot;similar enough&quot; , &icy; &iecy;&gcy;&ocy; &mcy;&ocy;&zhcy;&ncy;&ocy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&icy;&tcy;&softcy; &dcy;&lcy;&yacy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &pcy;&ocy;&kcy;&acy;&zcy;&acy;&tcy;&iecy;&lcy;&yacy; &scy;&khcy;&ocy;&dcy;&scy;&tcy;&vcy;&acy;, &ocy;&tcy;&lcy;&icy;&chcy;&ncy;&ocy;&gcy;&ocy; &ocy;&tcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;, &rcy;&acy;&vcy;&ncy;&ocy;&gcy;&ocy; 50&nbsp;%, &pcy;&ucy;&tcy;&iecy;&mcy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&icy;&yacy; &chcy;&icy;&scy;&lcy;&acy; &pcy;&ocy;&scy;&lcy;&iecy;  &quot;-M&quot;  &icy;&lcy;&icy; &Ocy;&pcy;&tscy;&icy;&yacy;  &quot;-C&quot;  (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;,  &quot;-M8&quot; , &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; 8/10 = 80%).</span></p> <p><span data-i18n="11b2d12564bf94bf7f14efdffee971d5de4361c1e55284941f8f0e02b5347c7d/2d" data-source="Note that when rename detection is on but both copy and break detection are off, rename detection adds a preliminary step that first checks if files are moved across directories while keeping their filename the same. If there is a file added to a directory whose contents are sufficiently similar to a file with the same name that got deleted from a different directory, it will mark them as renames and exclude them from the later quadratic step (the one that pairwise compares all unmatched files to find the &amp;quot;best&amp;quot; matches, determined by the highest content similarity). So, for example, if a deleted docs/ext.txt and an added docs/config/ext.txt are similar enough, they will be marked as a rename and prevent an added docs/ext.md that may be even more similar to the deleted docs/ext.txt from being considered as the rename destination in the later step. For this reason, the preliminary &amp;quot;match same filename&amp;quot; step uses a bit higher threshold to mark a file pair as a rename and stop considering other candidates for better matches. At most, one comparison is done per file in this preliminary pass; so if there are several remaining ext.txt files throughout the directory hierarchy after exact rename detection, this preliminary step may be skipped for those files." onmousemove="i18n(this)">&Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;: &iecy;&scy;&lcy;&icy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&iecy; &pcy;&iecy;&rcy;&iecy;&icy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&ocy;, &ncy;&ocy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&iecy; &kcy;&ocy;&pcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &icy; &rcy;&acy;&zcy;&rcy;&ycy;&vcy;&acy; &ocy;&tcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&ocy;, &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&iecy; &pcy;&iecy;&rcy;&iecy;&icy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &pcy;&rcy;&iecy;&dcy;&vcy;&acy;&rcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&jcy; &shcy;&acy;&gcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &scy;&ncy;&acy;&chcy;&acy;&lcy;&acy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&yacy;&iecy;&tcy;, &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&shchcy;&acy;&yucy;&tcy;&scy;&yacy; &lcy;&icy; &fcy;&acy;&jcy;&lcy;&ycy; &mcy;&iecy;&zhcy;&dcy;&ucy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy;&mcy;&icy;, &scy;&ocy;&khcy;&rcy;&acy;&ncy;&yacy;&yacy; &pcy;&rcy;&icy; &ecy;&tcy;&ocy;&mcy; &icy;&khcy; &icy;&mcy;&yacy;. &IEcy;&scy;&lcy;&icy; &vcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy; &fcy;&acy;&jcy;&lcy;, &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&gcy;&ocy; &dcy;&ocy;&scy;&tcy;&acy;&tcy;&ocy;&chcy;&ncy;&ocy; &pcy;&ocy;&khcy;&ocy;&zhcy;&iecy; &ncy;&acy; &fcy;&acy;&jcy;&lcy; &scy; &tcy;&iecy;&mcy; &zhcy;&iecy; &icy;&mcy;&iecy;&ncy;&iecy;&mcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &bcy;&ycy;&lcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy; &icy;&zcy; &dcy;&rcy;&ucy;&gcy;&ocy;&gcy;&ocy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy;, &ocy;&ncy; &pcy;&ocy;&mcy;&iecy;&tcy;&icy;&tcy; &icy;&khcy; &kcy;&acy;&kcy; &pcy;&iecy;&rcy;&iecy;&icy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&iecy; &icy; &icy;&scy;&kcy;&lcy;&yucy;&chcy;&icy;&tcy; &icy;&khcy; &icy;&zcy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&iecy;&gcy;&ocy; &kcy;&vcy;&acy;&dcy;&rcy;&acy;&tcy;&icy;&chcy;&ncy;&ocy;&gcy;&ocy; &shcy;&acy;&gcy;&acy; (&tcy;&ocy;&gcy;&ocy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &pcy;&ocy;&pcy;&acy;&rcy;&ncy;&ocy; &scy;&rcy;&acy;&vcy;&ncy;&icy;&vcy;&acy;&iecy;&tcy; &vcy;&scy;&iecy; &ncy;&iecy;&scy;&ocy;&vcy;&pcy;&acy;&dcy;&acy;&yucy;&shchcy;&icy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &dcy;&lcy;&yacy; &pcy;&ocy;&icy;&scy;&kcy;&acy; &scy;&ocy;&vcy;&pcy;&acy;&dcy;&iecy;&ncy;&icy;&jcy;  &quot;best&quot; , &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&iecy;&mcy;&ycy;&khcy; &pcy;&ocy; &ncy;&acy;&icy;&bcy;&ocy;&lcy;&softcy;&shcy;&iecy;&mcy;&ucy; &scy;&khcy;&ocy;&dcy;&scy;&tcy;&vcy;&ucy; &kcy;&ocy;&ncy;&tcy;&iecy;&ncy;&tcy;&acy;). &Tcy;&acy;&kcy;, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &iecy;&scy;&lcy;&icy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&jcy; docs/ext.txt &icy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&ncy;&ycy;&jcy; docs/config/ext.txt &dcy;&ocy;&scy;&tcy;&acy;&tcy;&ocy;&chcy;&ncy;&ocy; &pcy;&ocy;&khcy;&ocy;&zhcy;&icy;, &ocy;&ncy;&icy; &bcy;&ucy;&dcy;&ucy;&tcy; &pcy;&ocy;&mcy;&iecy;&chcy;&iecy;&ncy;&ycy; &kcy;&acy;&kcy; &pcy;&iecy;&rcy;&iecy;&icy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&iecy; &icy; &pcy;&rcy;&iecy;&dcy;&ocy;&tcy;&vcy;&rcy;&acy;&tcy;&yacy;&tcy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; docs/ext.md, &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &iecy;&shchcy;&iecy; &bcy;&ocy;&lcy;&iecy;&iecy; &pcy;&ocy;&khcy;&ocy;&zhcy;&iecy; &ncy;&acy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy; docs/ext.txt &ncy;&iecy; &bcy;&ucy;&dcy;&iecy;&tcy; &scy;&chcy;&icy;&tcy;&acy;&tcy;&softcy;&scy;&yacy; &mcy;&iecy;&scy;&tcy;&ocy;&mcy; &ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &pcy;&iecy;&rcy;&iecy;&icy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &ncy;&acy; &bcy;&ocy;&lcy;&iecy;&iecy; &pcy;&ocy;&zcy;&dcy;&ncy;&iecy;&mcy; &ecy;&tcy;&acy;&pcy;&iecy;. &Pcy;&ocy; &ecy;&tcy;&ocy;&jcy; &pcy;&rcy;&icy;&chcy;&icy;&ncy;&iecy; &ncy;&acy; &pcy;&rcy;&iecy;&dcy;&vcy;&acy;&rcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&mcy; &ecy;&tcy;&acy;&pcy;&iecy;  &quot;match same filename&quot;  &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &ncy;&iecy;&mcy;&ncy;&ocy;&gcy;&ocy; &bcy;&ocy;&lcy;&iecy;&iecy; &vcy;&ycy;&scy;&ocy;&kcy;&icy;&jcy; &pcy;&ocy;&rcy;&ocy;&gcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &pcy;&ocy;&mcy;&iecy;&tcy;&icy;&tcy;&softcy; &pcy;&acy;&rcy;&ucy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &kcy;&acy;&kcy; &pcy;&iecy;&rcy;&iecy;&icy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&ncy;&ucy;&yucy; &icy; &pcy;&rcy;&iecy;&kcy;&rcy;&acy;&tcy;&icy;&tcy;&softcy; &rcy;&acy;&scy;&scy;&mcy;&ocy;&tcy;&rcy;&iecy;&ncy;&icy;&iecy; &dcy;&rcy;&ucy;&gcy;&icy;&khcy; &kcy;&acy;&ncy;&dcy;&icy;&dcy;&acy;&tcy;&ocy;&vcy; &ncy;&acy; &lcy;&ucy;&chcy;&shcy;&iecy;&iecy; &scy;&ocy;&vcy;&pcy;&acy;&dcy;&iecy;&ncy;&icy;&iecy;. &Ncy;&acy; &ecy;&tcy;&ocy;&mcy; &pcy;&rcy;&iecy;&dcy;&vcy;&acy;&rcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&mcy; &pcy;&rcy;&ocy;&khcy;&ocy;&dcy;&iecy; &dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&acy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &ncy;&iecy; &bcy;&ocy;&lcy;&iecy;&iecy; &ocy;&dcy;&ncy;&ocy;&gcy;&ocy; &scy;&rcy;&acy;&vcy;&ncy;&iecy;&ncy;&icy;&yacy;; &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy;, &iecy;&scy;&lcy;&icy; &pcy;&ocy;&scy;&lcy;&iecy; &tcy;&ocy;&chcy;&ncy;&ocy;&gcy;&ocy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&yacy; &pcy;&iecy;&rcy;&iecy;&icy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &vcy; &icy;&iecy;&rcy;&acy;&rcy;&khcy;&icy;&icy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&ocy;&vcy; &ocy;&scy;&tcy;&acy;&lcy;&ocy;&scy;&softcy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; ext.txt, &ecy;&tcy;&ocy;&tcy; &pcy;&rcy;&iecy;&dcy;&vcy;&acy;&rcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&jcy; &shcy;&acy;&gcy; &mcy;&ocy;&zhcy;&ncy;&ocy; &pcy;&rcy;&ocy;&pcy;&ucy;&scy;&tcy;&icy;&tcy;&softcy; &dcy;&lcy;&yacy; &ecy;&tcy;&icy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;.</span></p> <p><span data-i18n="81df13a11fd5f886eafb8df829f981305483965ecadf693989971ac9218526e6/d3" data-source="Note. When the &amp;quot;-C&amp;quot; option is used with &lt;code&gt;--find-copies-harder&lt;/code&gt; option, &lt;code&gt;git diff-*&lt;/code&gt; commands feed unmodified filepairs to diffcore mechanism as well as modified ones. This lets the copy detector consider unmodified files as copy source candidates at the expense of making it slower. Without &lt;code&gt;--find-copies-harder&lt;/code&gt;, &lt;code&gt;git diff-*&lt;/code&gt; commands can detect copies only if the file that was copied happened to have been modified in the same changeset." onmousemove="i18n(this)">&Pcy;&rcy;&icy;&mcy;&iecy;&chcy;&acy;&ncy;&icy;&iecy;. &Kcy;&ocy;&gcy;&dcy;&acy; &ocy;&pcy;&tscy;&icy;&yacy;  &quot;-C&quot;  &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &scy; &ocy;&pcy;&tscy;&icy;&iecy;&jcy;  <code>--find-copies-harder</code> , &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  <code>git diff-*</code>  &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&yucy;&tcy; &vcy; &mcy;&iecy;&khcy;&acy;&ncy;&icy;&zcy;&mcy; diffcore &ncy;&iecy;&mcy;&ocy;&dcy;&icy;&fcy;&icy;&tscy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&iecy; &pcy;&acy;&rcy;&ycy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &acy; &tcy;&acy;&kcy;&zhcy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&ncy;&ycy;&iecy;. &Ecy;&tcy;&ocy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &dcy;&iecy;&tcy;&iecy;&kcy;&tcy;&ocy;&rcy;&ucy; &kcy;&ocy;&pcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &rcy;&acy;&scy;&scy;&mcy;&acy;&tcy;&rcy;&icy;&vcy;&acy;&tcy;&softcy; &ncy;&iecy;&mcy;&ocy;&dcy;&icy;&fcy;&icy;&tscy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &kcy;&acy;&kcy; &kcy;&acy;&ncy;&dcy;&icy;&dcy;&acy;&tcy;&ycy; &ncy;&acy; &icy;&scy;&tcy;&ocy;&chcy;&ncy;&icy;&kcy;&icy; &kcy;&ocy;&pcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy;, &ncy;&ocy; &ecy;&tcy;&ocy; &zcy;&acy;&mcy;&iecy;&dcy;&lcy;&yacy;&iecy;&tcy; &rcy;&acy;&bcy;&ocy;&tcy;&ucy;. &Bcy;&iecy;&zcy;  <code>--find-copies-harder</code>  &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  <code>git diff-*</code>  &mcy;&ocy;&gcy;&ucy;&tcy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&icy;&vcy;&acy;&tcy;&softcy; &kcy;&ocy;&pcy;&icy;&icy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &vcy; &tcy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy;, &iecy;&scy;&lcy;&icy; &scy;&kcy;&ocy;&pcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy; &bcy;&ycy;&lcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy; &vcy; &tcy;&ocy;&mcy; &zhcy;&iecy; &ncy;&acy;&bcy;&ocy;&rcy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_diffcore_merge_broken_for_putting_complete_rewrites_back_together"><span data-i18n="9572cab43e651609d33334144644f935c64704ca8c3fe2fc33a7008d1f6411b9/43" data-source="Diffcore-merge-broken: for putting complete rewrites back together" onmousemove="i18n(this)">Diffcore-merge-broken: &dcy;&lcy;&yacy; &ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&iecy;&ncy;&icy;&yacy; &pcy;&ocy;&lcy;&ncy;&ycy;&khcy; &pcy;&iecy;&rcy;&iecy;&zcy;&acy;&pcy;&icy;&scy;&iecy;&jcy;</span></h2> <div> <p><span data-i18n="0a544ba0809abaa59a067c49f0bbbfce67ac3a84cd3da07d64331ffc004ad962/ea" data-source="This transformation is used to merge filepairs broken by diffcore-break, and not transformed into rename/copy by diffcore-rename, back into a single modification. This always runs when diffcore-break is used." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &pcy;&rcy;&iecy;&ocy;&bcy;&rcy;&acy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&iecy;&ncy;&icy;&yacy; &pcy;&acy;&rcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &rcy;&acy;&zcy;&bcy;&icy;&tcy;&ycy;&khcy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; diffcore-break &icy; &ncy;&iecy; &pcy;&rcy;&iecy;&ocy;&bcy;&rcy;&acy;&zcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&khcy; &vcy; &pcy;&iecy;&rcy;&iecy;&icy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&icy;&iecy;/&kcy;&ocy;&pcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; diffcore-rename, &ocy;&bcy;&rcy;&acy;&tcy;&ncy;&ocy; &vcy; &ocy;&dcy;&ncy;&ucy; &mcy;&ocy;&dcy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&yucy;. &Ecy;&tcy;&ocy; &vcy;&scy;&iecy;&gcy;&dcy;&acy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy;, &kcy;&ocy;&gcy;&dcy;&acy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; diffcore-break.</span></p> <p><span data-i18n="2894565070296c98af1c057a7f0f3441715a68c494bee0b8d43f5169ad60e7f7/47" data-source="For the purpose of merging broken filepairs back, it uses a different &amp;quot;extent of changes&amp;quot; computation from the ones used by diffcore-break and diffcore-rename. It counts only the deletion from the original, and does not count insertion. If you removed only 10 lines from a 100-line document, even if you added 910 new lines to make a new 1000-line document, you did not do a complete rewrite. diffcore-break breaks such a case in order to help diffcore-rename to consider such filepairs as a candidate of rename/copy detection, but if filepairs broken that way were not matched with other filepairs to create rename/copy, then this transformation merges them back into the original &amp;quot;modification&amp;quot;." onmousemove="i18n(this)">&Dcy;&lcy;&yacy; &ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&iecy;&ncy;&icy;&yacy; &pcy;&ocy;&vcy;&rcy;&iecy;&zhcy;&dcy;&iecy;&ncy;&ncy;&ycy;&khcy; &pcy;&acy;&rcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy;&tcy;&scy;&yacy; &vcy;&ycy;&chcy;&icy;&scy;&lcy;&iecy;&ncy;&icy;&yacy;  &quot;extent of changes&quot; , &ocy;&tcy;&lcy;&icy;&chcy;&ncy;&ycy;&iecy; &ocy;&tcy; &tcy;&iecy;&khcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy;&tcy;&scy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;&mcy;&icy; diffcore-break &icy; diffcore-rename. &Ocy;&ncy; &ucy;&chcy;&icy;&tcy;&ycy;&vcy;&acy;&iecy;&tcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&iecy; &icy;&zcy; &ocy;&rcy;&icy;&gcy;&icy;&ncy;&acy;&lcy;&acy; &icy; &ncy;&iecy; &ucy;&chcy;&icy;&tcy;&ycy;&vcy;&acy;&iecy;&tcy; &vcy;&scy;&tcy;&acy;&vcy;&kcy;&ucy;. &IEcy;&scy;&lcy;&icy; &vcy;&ycy; &ucy;&dcy;&acy;&lcy;&icy;&lcy;&icy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; 10 &scy;&tcy;&rcy;&ocy;&kcy; &icy;&zcy; 100-&scy;&tcy;&rcy;&ocy;&chcy;&ncy;&ocy;&gcy;&ocy; &dcy;&ocy;&kcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;, &dcy;&acy;&zhcy;&iecy; &iecy;&scy;&lcy;&icy; &vcy;&ycy; &dcy;&ocy;&bcy;&acy;&vcy;&icy;&lcy;&icy; 910 &ncy;&ocy;&vcy;&ycy;&khcy; &scy;&tcy;&rcy;&ocy;&kcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &scy;&ocy;&zcy;&dcy;&acy;&tcy;&softcy; &ncy;&ocy;&vcy;&ycy;&jcy; 1000-&scy;&tcy;&rcy;&ocy;&chcy;&ncy;&ycy;&jcy; &dcy;&ocy;&kcy;&ucy;&mcy;&iecy;&ncy;&tcy;, &vcy;&ycy; &ncy;&iecy; &scy;&dcy;&iecy;&lcy;&acy;&lcy;&icy; &pcy;&ocy;&lcy;&ncy;&ocy;&jcy; &pcy;&iecy;&rcy;&iecy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&ncy;&icy;&yacy;. diffcore-break &pcy;&rcy;&iecy;&rcy;&ycy;&vcy;&acy;&iecy;&tcy; &tcy;&acy;&kcy;&ocy;&jcy; &scy;&lcy;&ucy;&chcy;&acy;&jcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &pcy;&ocy;&mcy;&ocy;&chcy;&softcy; diffcore-rename &rcy;&acy;&scy;&scy;&mcy;&acy;&tcy;&rcy;&icy;&vcy;&acy;&tcy;&softcy; &tcy;&acy;&kcy;&icy;&iecy; &pcy;&acy;&rcy;&ycy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &kcy;&acy;&kcy; &kcy;&acy;&ncy;&dcy;&icy;&dcy;&acy;&tcy;&ycy; &ncy;&acy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&iecy; &pcy;&iecy;&rcy;&iecy;&icy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&icy;&yacy;/&kcy;&ocy;&pcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy;, &ncy;&ocy; &iecy;&scy;&lcy;&icy; &scy;&lcy;&ocy;&mcy;&acy;&ncy;&ncy;&ycy;&iecy; &tcy;&acy;&kcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy; &pcy;&acy;&rcy;&ycy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &ncy;&iecy; &scy;&ocy;&pcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&lcy;&icy;&scy;&softcy; &scy; &dcy;&rcy;&ucy;&gcy;&icy;&mcy;&icy; &pcy;&acy;&rcy;&acy;&mcy;&icy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &dcy;&lcy;&yacy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&yacy; &pcy;&iecy;&rcy;&iecy;&icy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&icy;&yacy;/&kcy;&ocy;&pcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy;, &tcy;&ocy; &ecy;&tcy;&ocy; &pcy;&rcy;&iecy;&ocy;&bcy;&rcy;&acy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&yacy;&iecy;&tcy; &icy;&khcy; &ocy;&bcy;&rcy;&acy;&tcy;&ncy;&ocy; &vcy; &icy;&scy;&khcy;&ocy;&dcy;&ncy;&ycy;&jcy;  &quot;modification&quot; .</span></p> <p><span data-i18n="4014b881d135239f51135824d1b2699507d0bd4e20c054255f942dcd7182b5fd/4d" data-source="The &amp;quot;extent of changes&amp;quot; parameter can be tweaked from the default 80% (that is, unless more than 80% of the original material is deleted, the broken pairs are merged back into a single modification) by giving a second number to -B option, like these:" onmousemove="i18n(this)">&Pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;  &quot;extent of changes&quot;  &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy; &scy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; 80% &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; (&tcy;&ocy; &iecy;&scy;&tcy;&softcy;, &iecy;&scy;&lcy;&icy; &ncy;&iecy; &bcy;&ucy;&dcy;&iecy;&tcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ocy; &bcy;&ocy;&lcy;&iecy;&iecy; 80% &icy;&scy;&khcy;&ocy;&dcy;&ncy;&ocy;&gcy;&ocy; &mcy;&acy;&tcy;&iecy;&rcy;&icy;&acy;&lcy;&acy;, &scy;&lcy;&ocy;&mcy;&acy;&ncy;&ncy;&ycy;&iecy; &pcy;&acy;&rcy;&ycy; &ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&yacy;&yucy;&tcy;&scy;&yacy; &ocy;&bcy;&rcy;&acy;&tcy;&ncy;&ocy; &vcy; &ocy;&dcy;&ncy;&ucy; &mcy;&ocy;&dcy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&yucy;), &zcy;&acy;&dcy;&acy;&vcy; &vcy;&tcy;&ocy;&rcy;&ocy;&iecy; &chcy;&icy;&scy;&lcy;&ocy; &dcy;&lcy;&yacy; &ocy;&pcy;&tscy;&icy;&icy; -B, &kcy;&acy;&kcy; &pcy;&ocy;&kcy;&acy;&zcy;&acy;&ncy;&ocy; &ncy;&icy;&zhcy;&iecy;. :</span></p> <div> <ul> <li> <p><span data-i18n="29e9f6b31f7b5b4d11ff5d10bc71d22008bcf441af3bbf0355a7be6bc1f484ac/f8" data-source="-B50/60 (give 50% &amp;quot;break score&amp;quot; to diffcore-break, use 60% for diffcore-merge-broken)." onmousemove="i18n(this)">-B50/60 (&dcy;&acy;&jcy;&tcy;&iecy; 50%  &quot;break score&quot;  &dcy;&lcy;&yacy; diffcore-break, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy; 60% &dcy;&lcy;&yacy; diffcore-merge-broken).</span></p> </li> <li> <p><span data-i18n="006613ff4433402c7f79337169b39fd54fd7cf2419a335b7623b90959562cc5e/7a" data-source="-B/60 (the same as above, since diffcore-break defaults to 50%)." onmousemove="i18n(this)">-B/60 (&tcy;&ocy; &zhcy;&iecy;, &chcy;&tcy;&ocy; &icy; &vcy;&ycy;&shcy;&iecy;, &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; diffcore-break &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &rcy;&acy;&vcy;&ncy;&ocy; 50%).</span></p> </li> </ul> </div> <p><span data-i18n="8b84030d94fd3363b03037f6a7d712f39287b1b2f6057bd19285019c843984d7/78" data-source="Note that earlier implementation left a broken pair as separate creation and deletion patches. This was an unnecessary hack, and the latest implementation always merges all the broken pairs back into modifications, but the resulting patch output is formatted differently for easier review in case of such a complete rewrite by showing the entire contents of the old version prefixed with &lt;code&gt;-&lt;/code&gt;, followed by the entire contents of the new version prefixed with &lt;code&gt;+&lt;/code&gt;." onmousemove="i18n(this)">&Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy; &vcy; &bcy;&ocy;&lcy;&iecy;&iecy; &rcy;&acy;&ncy;&ncy;&iecy;&jcy; &rcy;&iecy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&icy; &ncy;&iecy;&rcy;&acy;&bcy;&ocy;&tcy;&acy;&yucy;&shchcy;&acy;&yacy; &pcy;&acy;&rcy;&acy; &ocy;&scy;&tcy;&acy;&vcy;&acy;&lcy;&acy;&scy;&softcy; &vcy; &vcy;&icy;&dcy;&iecy; &ocy;&tcy;&dcy;&iecy;&lcy;&softcy;&ncy;&ycy;&khcy; &pcy;&acy;&tcy;&chcy;&iecy;&jcy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&yacy; &icy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&yacy;. &Ecy;&tcy;&ocy; &bcy;&ycy;&lcy; &ncy;&iecy;&ncy;&ucy;&zhcy;&ncy;&ycy;&jcy; &vcy;&zcy;&lcy;&ocy;&mcy;, &icy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ncy;&yacy;&yacy; &rcy;&iecy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&yacy; &vcy;&scy;&iecy;&gcy;&dcy;&acy; &ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&yacy;&iecy;&tcy; &vcy;&scy;&iecy; &scy;&lcy;&ocy;&mcy;&acy;&ncy;&ncy;&ycy;&iecy; &pcy;&acy;&rcy;&ycy; &ocy;&bcy;&rcy;&acy;&tcy;&ncy;&ocy; &vcy; &mcy;&ocy;&dcy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&icy;, &ncy;&ocy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&icy;&rcy;&ucy;&yucy;&shchcy;&icy;&jcy; &vcy;&ycy;&vcy;&ocy;&dcy; &pcy;&acy;&tcy;&chcy;&acy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy;-&dcy;&rcy;&ucy;&gcy;&ocy;&mcy;&ucy; &dcy;&lcy;&yacy; &ocy;&bcy;&lcy;&iecy;&gcy;&chcy;&iecy;&ncy;&icy;&yacy; &pcy;&rcy;&ocy;&scy;&mcy;&ocy;&tcy;&rcy;&acy; &vcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &tcy;&acy;&kcy;&ocy;&jcy; &pcy;&ocy;&lcy;&ncy;&ocy;&jcy; &pcy;&iecy;&rcy;&iecy;&zcy;&acy;&pcy;&icy;&scy;&icy;, &pcy;&ocy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&yacy; &vcy;&scy;&iecy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &scy;&tcy;&acy;&rcy;&ocy;&jcy; &vcy;&iecy;&rcy;&scy;&icy;&icy; &scy; &pcy;&rcy;&iecy;&fcy;&icy;&kcy;&scy;&ocy;&mcy;  <code>-</code> . , &zcy;&acy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&mcy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &vcy;&scy;&iecy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &ncy;&ocy;&vcy;&ocy;&jcy; &vcy;&iecy;&rcy;&scy;&icy;&icy; &scy; &pcy;&rcy;&iecy;&fcy;&icy;&kcy;&scy;&ocy;&mcy;  <code>+</code>  .</span></p> </div> <h2 class="text-body-emphasis"  id="_diffcore_pickaxe_for_detecting_additiondeletion_of_specified_string"><span data-i18n="9fff9948973b38cf4e8e7fed2ca3dcab8982c9c44580fe1ed69be6f4df677817/b5" data-source="Diffcore-pickaxe: for detecting addition/deletion of specified string" onmousemove="i18n(this)">Diffcore-&kcy;&icy;&rcy;&kcy;&acy;: &dcy;&lcy;&yacy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&yacy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;/&ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&yacy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;.</span></h2> <div> <p><span data-i18n="e54c444a2b7c2fd93291c873db6987c0d8054ba7d3487e00ba0ac683b9a4b5cf/92" data-source="This transformation limits the set of filepairs to those that change specified strings between the preimage and the postimage in a certain way. -S&amp;lt;block of text&amp;gt; and -G&amp;lt;regular expression&amp;gt; options are used to specify different ways these strings are sought." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &pcy;&rcy;&iecy;&ocy;&bcy;&rcy;&acy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&icy;&vcy;&acy;&iecy;&tcy; &ncy;&acy;&bcy;&ocy;&rcy; &pcy;&acy;&rcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &tcy;&iecy;&mcy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&ncy;&ycy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy; &icy;&zcy;&mcy;&iecy;&ncy;&yacy;&yucy;&tcy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ycy;&iecy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &mcy;&iecy;&zhcy;&dcy;&ucy; &pcy;&rcy;&ocy;&ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy; &icy; &pcy;&ocy;&scy;&tcy;&icy;&zcy;&ocy;&bcy;&rcy;&acy;&zhcy;&iecy;&ncy;&icy;&iecy;&mcy;. &Pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy; -S&lt;&bcy;&lcy;&ocy;&kcy; &tcy;&iecy;&kcy;&scy;&tcy;&acy;&gt; &icy; -G&lt;&rcy;&iecy;&gcy;&ucy;&lcy;&yacy;&rcy;&ncy;&ocy;&iecy; &vcy;&ycy;&rcy;&acy;&zhcy;&iecy;&ncy;&icy;&iecy;&gt; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&icy;&yacy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&ncy;&ycy;&khcy; &scy;&pcy;&ocy;&scy;&ocy;&bcy;&ocy;&vcy; &pcy;&ocy;&icy;&scy;&kcy;&acy; &ecy;&tcy;&icy;&khcy; &scy;&tcy;&rcy;&ocy;&kcy;.</span></p> <p><span data-i18n="a26e1b09d5defeb32c5a7587b42ef582b0a9872ec888f11f0cc5c1b7a4872db4/3c" data-source="&amp;quot;-S&amp;lt;block of text&amp;gt;&amp;quot; detects filepairs whose preimage and postimage have different number of occurrences of the specified block of text. By definition, it will not detect in-file moves. Also, when a changeset moves a file wholesale without affecting the interesting string, diffcore-rename kicks in as usual, and &lt;code&gt;-S&lt;/code&gt; omits the filepair (since the number of occurrences of that string didn&amp;rsquo;t change in that rename-detected filepair). When used with &lt;code&gt;--pickaxe-regex&lt;/code&gt;, treat the &amp;lt;block of text&amp;gt; as an extended POSIX regular expression to match, instead of a literal string." onmousemove="i18n(this)">&quot;-S&lt;block of text&gt;&quot;  &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&icy;&vcy;&acy;&iecy;&tcy; &pcy;&acy;&rcy;&ycy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &vcy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy; &pcy;&rcy;&ocy;&ocy;&bcy;&rcy;&acy;&zcy; &icy; &pcy;&ocy;&scy;&tcy;&icy;&zcy;&ocy;&bcy;&rcy;&acy;&zhcy;&iecy;&ncy;&icy;&iecy; &icy;&mcy;&iecy;&yucy;&tcy; &rcy;&acy;&zcy;&ncy;&ocy;&iecy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &vcy;&khcy;&ocy;&zhcy;&dcy;&iecy;&ncy;&icy;&jcy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ocy;&gcy;&ocy; &bcy;&lcy;&ocy;&kcy;&acy; &tcy;&iecy;&kcy;&scy;&tcy;&acy;. &Pcy;&ocy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&icy;&yucy;, &ocy;&ncy; &ncy;&iecy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&icy;&tcy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&shchcy;&iecy;&ncy;&icy;&yacy; &vcy;&ncy;&ucy;&tcy;&rcy;&icy; &fcy;&acy;&jcy;&lcy;&acy;. &Kcy;&rcy;&ocy;&mcy;&iecy; &tcy;&ocy;&gcy;&ocy;, &kcy;&ocy;&gcy;&dcy;&acy; &ncy;&acy;&bcy;&ocy;&rcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&shchcy;&acy;&iecy;&tcy; &fcy;&acy;&jcy;&lcy; &tscy;&iecy;&lcy;&icy;&kcy;&ocy;&mcy;, &ncy;&iecy; &zcy;&acy;&tcy;&rcy;&acy;&gcy;&icy;&vcy;&acy;&yacy; &icy;&ncy;&tcy;&iecy;&rcy;&iecy;&scy;&ucy;&yucy;&shchcy;&ucy;&yucy; &scy;&tcy;&rcy;&ocy;&kcy;&ucy;, diffcore-rename &scy;&rcy;&acy;&bcy;&acy;&tcy;&ycy;&vcy;&acy;&iecy;&tcy; &kcy;&acy;&kcy; &ocy;&bcy;&ycy;&chcy;&ncy;&ocy;, &icy;  <code>-S</code>  &ocy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy; &pcy;&acy;&rcy;&ucy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; (&pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &vcy;&khcy;&ocy;&zhcy;&dcy;&iecy;&ncy;&icy;&jcy; &ecy;&tcy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &ncy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&lcy;&ocy;&scy;&softcy; &vcy; &ecy;&tcy;&ocy;&jcy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&icy; &pcy;&iecy;&rcy;&iecy;&icy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &pcy;&acy;&rcy;&iecy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;). &Pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &scy;  <code>--pickaxe-regex</code>  &rcy;&acy;&scy;&scy;&mcy;&acy;&tcy;&rcy;&icy;&vcy;&acy;&jcy;&tcy;&iecy; &lt;&bcy;&lcy;&ocy;&kcy; &tcy;&iecy;&kcy;&scy;&tcy;&acy;&gt; &kcy;&acy;&kcy; &rcy;&acy;&scy;&shcy;&icy;&rcy;&iecy;&ncy;&ncy;&ocy;&iecy; &rcy;&iecy;&gcy;&ucy;&lcy;&yacy;&rcy;&ncy;&ocy;&iecy; &vcy;&ycy;&rcy;&acy;&zhcy;&iecy;&ncy;&icy;&iecy; POSIX, &acy; &ncy;&iecy; &kcy;&acy;&kcy; &lcy;&icy;&tcy;&iecy;&rcy;&acy;&lcy;&softcy;&ncy;&ucy;&yucy; &scy;&tcy;&rcy;&ocy;&kcy;&ucy;.</span></p> <p><span data-i18n="a4ce6cead815a289f0fb5656c6ca1fe596ad6ac85858084971a9ae4fa16447f2/8c" data-source="&amp;quot;-G&amp;lt;regular expression&amp;gt;&amp;quot; (mnemonic: grep) detects filepairs whose textual diff has an added or a deleted line that matches the given regular expression. This means that it will detect in-file (or what rename-detection considers the same file) moves, which is noise. The implementation runs diff twice and greps, and this can be quite expensive. To speed things up, binary files without textconv filters will be ignored." onmousemove="i18n(this)">&quot;-G&lt;regular expression&gt;&quot;  (&mcy;&ncy;&iecy;&mcy;&ocy;&ncy;&icy;&kcy;&acy;: grep) &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&icy;&vcy;&acy;&iecy;&tcy; &pcy;&acy;&rcy;&ycy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &vcy; &tcy;&iecy;&kcy;&scy;&tcy;&ocy;&vcy;&ycy;&khcy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&yacy;&khcy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy; &iecy;&scy;&tcy;&softcy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&ncy;&acy;&yacy; &icy;&lcy;&icy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&acy;&yacy; &scy;&tcy;&rcy;&ocy;&kcy;&acy;, &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&acy;&yacy; &zcy;&acy;&dcy;&acy;&ncy;&ncy;&ocy;&mcy;&ucy; &rcy;&iecy;&gcy;&ucy;&lcy;&yacy;&rcy;&ncy;&ocy;&mcy;&ucy; &vcy;&ycy;&rcy;&acy;&zhcy;&iecy;&ncy;&icy;&yucy;. &Ecy;&tcy;&ocy; &ocy;&zcy;&ncy;&acy;&chcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &ocy;&ncy; &bcy;&ucy;&dcy;&iecy;&tcy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&icy;&vcy;&acy;&tcy;&softcy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&shchcy;&iecy;&ncy;&icy;&yacy; &vcy;&ncy;&ucy;&tcy;&rcy;&icy; &fcy;&acy;&jcy;&lcy;&acy; (&icy;&lcy;&icy; &tcy;&ocy;, &chcy;&tcy;&ocy; &pcy;&rcy;&icy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&icy; &pcy;&iecy;&rcy;&iecy;&icy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &ucy;&chcy;&icy;&tcy;&ycy;&vcy;&acy;&iecy;&tcy; &tcy;&ocy;&tcy; &zhcy;&iecy; &fcy;&acy;&jcy;&lcy;), &chcy;&tcy;&ocy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &shcy;&ucy;&mcy;&ocy;&mcy;. &Rcy;&iecy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&yacy; &dcy;&vcy;&acy;&zhcy;&dcy;&ycy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy; diff &icy; grep, &acy; &ecy;&tcy;&ocy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &dcy;&ocy;&vcy;&ocy;&lcy;&softcy;&ncy;&ocy; &zcy;&acy;&tcy;&rcy;&acy;&tcy;&ncy;&ocy;. &Dcy;&lcy;&yacy; &ucy;&scy;&kcy;&ocy;&rcy;&iecy;&ncy;&icy;&yacy; &rcy;&acy;&bcy;&ocy;&tcy;&ycy; &dcy;&vcy;&ocy;&icy;&chcy;&ncy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &bcy;&iecy;&zcy; &fcy;&icy;&lcy;&softcy;&tcy;&rcy;&ocy;&vcy; textconf &bcy;&ucy;&dcy;&ucy;&tcy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy;.</span></p> <p><span data-i18n="c3df75793e9a064578dc95f95486df0337138e45d8fb91d7ac38bdb54bf57f26/43" data-source="When &lt;code&gt;-S&lt;/code&gt; or &lt;code&gt;-G&lt;/code&gt; are used without &lt;code&gt;--pickaxe-all&lt;/code&gt;, only filepairs that match their respective criterion are kept in the output. When &lt;code&gt;--pickaxe-all&lt;/code&gt; is used, if even one filepair matches their respective criterion in a changeset, the entire changeset is kept. This behavior is designed to make reviewing changes in the context of the whole changeset easier." onmousemove="i18n(this)">&Kcy;&ocy;&gcy;&dcy;&acy;  <code>-S</code>  &icy;&lcy;&icy;  <code>-G</code>  &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy;&tcy;&scy;&yacy; &bcy;&iecy;&zcy;  <code>--pickaxe-all</code> , &vcy; &vcy;&ycy;&khcy;&ocy;&dcy;&ncy;&ycy;&khcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&yacy;&yucy;&tcy;&scy;&yacy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &pcy;&acy;&rcy;&ycy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&iecy; &icy;&khcy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&iecy;&mcy;&ucy; &kcy;&rcy;&icy;&tcy;&iecy;&rcy;&icy;&yucy;. &Pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy;  <code>--pickaxe-all</code> , &iecy;&scy;&lcy;&icy; &khcy;&ocy;&tcy;&yacy; &bcy;&ycy; &ocy;&dcy;&ncy;&acy; &pcy;&acy;&rcy;&acy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&iecy;&mcy;&ucy; &kcy;&rcy;&icy;&tcy;&iecy;&rcy;&icy;&yucy; &vcy; &ncy;&acy;&bcy;&ocy;&rcy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy;, &vcy;&iecy;&scy;&softcy; &ncy;&acy;&bcy;&ocy;&rcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy;. &Tcy;&acy;&kcy;&ocy;&iecy; &pcy;&ocy;&vcy;&iecy;&dcy;&iecy;&ncy;&icy;&iecy; &pcy;&rcy;&iecy;&dcy;&ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&ocy; &dcy;&lcy;&yacy; &ocy;&bcy;&lcy;&iecy;&gcy;&chcy;&iecy;&ncy;&icy;&yacy; &pcy;&rcy;&ocy;&scy;&mcy;&ocy;&tcy;&rcy;&acy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy; &vcy; &kcy;&ocy;&ncy;&tcy;&iecy;&kcy;&scy;&tcy;&iecy; &vcy;&scy;&iecy;&gcy;&ocy; &ncy;&acy;&bcy;&ocy;&rcy;&acy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_diffcore_order_for_sorting_the_output_based_on_filenames"><span data-i18n="0c9565b011f8410dbf4e3789fd7633e91d3f4385856d391f2c4a0a95f64ff848/e9" data-source="Diffcore-order: for sorting the output based on filenames" onmousemove="i18n(this)">Diffcore-order: &dcy;&lcy;&yacy; &scy;&ocy;&rcy;&tcy;&icy;&rcy;&ocy;&vcy;&kcy;&icy; &vcy;&ycy;&vcy;&ocy;&dcy;&acy; &pcy;&ocy; &icy;&mcy;&iecy;&ncy;&acy;&mcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;.</span></h2> <div> <p><span data-i18n="d26929f9a89a8663e13ccdd119f38b356110575d87e7ebc624e27ebb6b24f395/82" data-source="This is used to reorder the filepairs according to the user&amp;rsquo;s (or project&amp;rsquo;s) taste, and is controlled by the -O option to the &lt;code&gt;git diff-*&lt;/code&gt; commands." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &pcy;&ocy;&rcy;&yacy;&dcy;&kcy;&acy; &pcy;&acy;&rcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &pcy;&ocy; &vcy;&kcy;&ucy;&scy;&ucy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy; (&icy;&lcy;&icy; &pcy;&rcy;&ocy;&iecy;&kcy;&tcy;&acy;) &icy; &kcy;&ocy;&ncy;&tcy;&rcy;&ocy;&lcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &ocy;&pcy;&tscy;&icy;&iecy;&jcy; -O &kcy;&ocy;&mcy;&acy;&ncy;&dcy;  <code>git diff-*</code> .</span></p> <p><span data-i18n="dbc6f10d51762cf4726d0281548116bb5a8ae8bf9d7bfd6533401454ebdc4450/63" data-source="This takes a text file each of whose lines is a shell glob pattern. Filepairs that match a glob pattern on an earlier line in the file are output before ones that match a later line, and filepairs that do not match any glob pattern are output last." onmousemove="i18n(this)">&Dcy;&lcy;&yacy; &ecy;&tcy;&ocy;&gcy;&ocy; &tcy;&rcy;&iecy;&bcy;&ucy;&iecy;&tcy;&scy;&yacy; &tcy;&iecy;&kcy;&scy;&tcy;&ocy;&vcy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy;, &kcy;&acy;&zhcy;&dcy;&acy;&yacy; &scy;&tcy;&rcy;&ocy;&kcy;&acy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&gcy;&ocy; &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&ocy;&bcy;&ocy;&jcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy; &ocy;&bcy;&ocy;&lcy;&ocy;&chcy;&kcy;&icy;. &Pcy;&acy;&rcy;&ycy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&iecy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ucy; &pcy;&ocy;&dcy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&kcy;&icy; &vcy; &bcy;&ocy;&lcy;&iecy;&iecy; &rcy;&acy;&ncy;&ncy;&iecy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&iecy; &fcy;&acy;&jcy;&lcy;&acy;, &vcy;&ycy;&vcy;&ocy;&dcy;&yacy;&tcy;&scy;&yacy; &pcy;&iecy;&rcy;&iecy;&dcy; &tcy;&iecy;&mcy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&tcy; &bcy;&ocy;&lcy;&iecy;&iecy; &pcy;&ocy;&zcy;&dcy;&ncy;&iecy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&iecy;, &acy; &pcy;&acy;&rcy;&ycy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &ncy;&iecy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&iecy; &ncy;&icy; &ocy;&dcy;&ncy;&ocy;&mcy;&ucy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ucy; &pcy;&ocy;&dcy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&kcy;&icy;, &vcy;&ycy;&vcy;&ocy;&dcy;&yacy;&tcy;&scy;&yacy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ncy;&icy;&mcy;&icy;.</span></p> <p><span data-i18n="6a4554094d146c90efa9ec2a133b96e6e7d72d15a13db00283b8aa40e0056585/b5" data-source="As an example, a typical orderfile for the core Git probably would look like this:" onmousemove="i18n(this)">&Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &tcy;&icy;&pcy;&icy;&chcy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy; &zcy;&acy;&kcy;&acy;&zcy;&acy; &dcy;&lcy;&yacy; &yacy;&dcy;&rcy;&acy;  Git , &vcy;&iecy;&rcy;&ocy;&yacy;&tcy;&ncy;&ocy;, &bcy;&ucy;&dcy;&iecy;&tcy; &vcy;&ycy;&gcy;&lcy;&yacy;&dcy;&iecy;&tcy;&softcy; &tcy;&acy;&kcy;:</span></p> <div> <div> <pre class="hljs language-markdown">README
Makefile
Documentation
<span class="hljs-emphasis">*.h
*</span>.c
t</pre> </div> </div> </div> <h2 class="text-body-emphasis"  id="_diffcore_rotate_for_changing_at_which_path_output_starts"><span data-i18n="0d70de53eb00518b215dc4c250fb2ea96fb6939d850e2d27d3e279c40c2d8ed6/16" data-source="Diffcore-rotate: for changing at which path output starts" onmousemove="i18n(this)">Diffcore-rotate: &dcy;&lcy;&yacy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &ncy;&acy;&chcy;&acy;&lcy;&acy; &vcy;&ycy;&vcy;&ocy;&dcy;&acy; &pcy;&ucy;&tcy;&icy;.</span></h2> <div> <p><span data-i18n="a1304904400c06973c27b36f3987117a9599b78cba7892da0b1f0ec81e1430e2/fd" data-source="This transformation takes one pathname, and rotates the set of filepairs so that the filepair for the given pathname comes first, optionally discarding the paths that come before it. This is used to implement the &lt;code&gt;--skip-to&lt;/code&gt; and the &lt;code&gt;--rotate-to&lt;/code&gt; options. It is an error when the specified pathname is not in the set of filepairs, but it is not useful to error out when used with &amp;quot;git log&amp;quot; family of commands, because it is unreasonable to expect that a given path would be modified by each and every commit shown by the &amp;quot;git log&amp;quot; command. For this reason, when used with &amp;quot;git log&amp;quot;, the filepair that sorts the same as, or the first one that sorts after, the given pathname is where the output starts." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &pcy;&rcy;&iecy;&ocy;&bcy;&rcy;&acy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &ocy;&dcy;&icy;&ncy; &pcy;&ucy;&tcy;&softcy; &icy; &vcy;&rcy;&acy;&shchcy;&acy;&iecy;&tcy; &ncy;&acy;&bcy;&ocy;&rcy; &pcy;&acy;&rcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &tcy;&acy;&kcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &pcy;&acy;&rcy;&acy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &dcy;&lcy;&yacy; &dcy;&acy;&ncy;&ncy;&ocy;&gcy;&ocy; &pcy;&ucy;&tcy;&icy; &bcy;&ycy;&lcy;&acy; &pcy;&iecy;&rcy;&vcy;&ocy;&jcy;, &pcy;&rcy;&icy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy;&scy;&tcy;&icy; &ocy;&tcy;&bcy;&rcy;&acy;&scy;&ycy;&vcy;&acy;&yacy; &pcy;&ucy;&tcy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &icy;&dcy;&ucy;&tcy; &pcy;&iecy;&rcy;&iecy;&dcy; &ncy;&iecy;&jcy;. &Ecy;&tcy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &rcy;&iecy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&icy; &ocy;&pcy;&tscy;&icy;&jcy;  <code>--skip-to</code>  &icy;  <code>--rotate-to</code> . &Ecy;&tcy;&ocy; &ocy;&shcy;&icy;&bcy;&kcy;&acy;, &kcy;&ocy;&gcy;&dcy;&acy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ycy;&jcy; &pcy;&ucy;&tcy;&softcy; &ocy;&tcy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &vcy; &ncy;&acy;&bcy;&ocy;&rcy;&iecy; &pcy;&acy;&rcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &ncy;&ocy; &vcy;&ycy;&dcy;&acy;&vcy;&acy;&tcy;&softcy; &ocy;&shcy;&icy;&bcy;&kcy;&ucy; &pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &scy; &scy;&iecy;&mcy;&iecy;&jcy;&scy;&tcy;&vcy;&ocy;&mcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;  &quot;git log&quot;  &bcy;&iecy;&scy;&pcy;&ocy;&lcy;&iecy;&zcy;&ncy;&ocy;, &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &ncy;&iecy;&rcy;&acy;&zcy;&ucy;&mcy;&ncy;&ocy; &ocy;&zhcy;&icy;&dcy;&acy;&tcy;&softcy;, &chcy;&tcy;&ocy; &dcy;&acy;&ncy;&ncy;&ycy;&jcy; &pcy;&ucy;&tcy;&softcy; &bcy;&ucy;&dcy;&iecy;&tcy; &icy;&zcy;&mcy;&iecy;&ncy;&yacy;&tcy;&softcy;&scy;&yacy; &pcy;&rcy;&icy; &kcy;&acy;&zhcy;&dcy;&ocy;&mcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&iecy;. &pcy;&ocy;&kcy;&acy;&zcy;&acy;&ncy;&ocy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ocy;&jcy;  &quot;git log&quot; . &Pcy;&ocy; &ecy;&tcy;&ocy;&jcy; &pcy;&rcy;&icy;&chcy;&icy;&ncy;&iecy; &pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &scy;  &quot;git log&quot;  &pcy;&acy;&rcy;&acy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&acy;&yacy; &scy;&ocy;&rcy;&tcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &tcy;&acy;&kcy; &zhcy;&iecy;, &kcy;&acy;&kcy; &icy;&lcy;&icy; &pcy;&iecy;&rcy;&vcy;&acy;&yacy;, &kcy;&ocy;&tcy;&ocy;&rcy;&acy;&yacy; &scy;&ocy;&rcy;&tcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy;&scy;&lcy;&iecy; &zcy;&acy;&dcy;&acy;&ncy;&ncy;&ocy;&gcy;&ocy; &pcy;&ucy;&tcy;&icy;, &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &mcy;&iecy;&scy;&tcy;&ocy;&mcy; &ncy;&acy;&chcy;&acy;&lcy;&acy; &vcy;&ycy;&vcy;&ocy;&dcy;&acy;.</span></p> <p><span data-i18n="f72588aa28dba9ac4aa91077e21f56b223943c693db688f06da0bc52a967786b/a1" data-source="Use of this transformation combined with diffcore-order will produce unexpected results, as the input to this transformation is likely not sorted when diffcore-order is in effect." onmousemove="i18n(this)">&Icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &ecy;&tcy;&ocy;&gcy;&ocy; &pcy;&rcy;&iecy;&ocy;&bcy;&rcy;&acy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &vcy; &scy;&ocy;&chcy;&iecy;&tcy;&acy;&ncy;&icy;&icy; &scy; diffcore-order &pcy;&rcy;&icy;&vcy;&iecy;&dcy;&iecy;&tcy; &kcy; &ncy;&iecy;&ocy;&zhcy;&icy;&dcy;&acy;&ncy;&ncy;&ycy;&mcy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&acy;&mcy;, &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &vcy;&khcy;&ocy;&dcy;&ncy;&ycy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &ecy;&tcy;&ocy;&gcy;&ocy; &pcy;&rcy;&iecy;&ocy;&bcy;&rcy;&acy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy;, &scy;&kcy;&ocy;&rcy;&iecy;&iecy; &vcy;&scy;&iecy;&gcy;&ocy;, &ncy;&iecy; &scy;&ocy;&rcy;&tcy;&icy;&rcy;&ucy;&yucy;&tcy;&scy;&yacy;, &kcy;&ocy;&gcy;&dcy;&acy; &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; diffcore-order.</span></p> </div> <h2 class="text-body-emphasis"  id="_see_also"><span data-i18n="2fa97693b70fa87b95b2d1bdf9558e4ac65d5e82d145f13a03849c4d9c4957a9/40" data-source="See also" onmousemove="i18n(this)">See also</span></h2> <div> <p><span data-i18n="ed7e998c80311d40f88ffaaa62ff6b4e25818fc13db7638a5c15ea0a22f31a54/08" data-source="&lt;a href=&quot;git-diff&quot;&gt;git-diff[1]&lt;/a&gt;, &lt;a href=&quot;git-diff-files&quot;&gt;git-diff-files[1]&lt;/a&gt;, &lt;a href=&quot;git-diff-index&quot;&gt;git-diff-index[1]&lt;/a&gt;, &lt;a href=&quot;git-diff-tree&quot;&gt;git-diff-tree[1]&lt;/a&gt;, &lt;a href=&quot;git-format-patch&quot;&gt;git-format-patch[1]&lt;/a&gt;, &lt;a href=&quot;git-log&quot;&gt;git-log[1]&lt;/a&gt;, &lt;a href=&quot;gitglossary&quot;&gt;gitglossary[7]&lt;/a&gt;, &lt;a href=&quot;user-manual&quot;&gt;The Git User&amp;rsquo;s Manual&lt;/a&gt;" onmousemove="i18n(this)"><a href="git-diff.html">git-diff[1]</a> ,  <a href="git-diff-files.html">git-diff-files[1]</a> ,  <a href="git-diff-index.html">git-diff-index[1]</a> ,  <a href="git-diff-tree.html">git-diff-tree[1]</a> ,  <a href="git-format-patch.html">git-format-patch[1]</a> ,  <a href="git-log.html">git-log[1]</a> ,  <a href="gitglossary.html">gitglossary[7]</a> ,  <a href="user-manual.html">The Git User&rsquo;s Manual</a></span></p> </div><address>
<p>
    &copy; 2012&ndash;2024 Scott Chacon and others<br/>Licensed under the MIT License.<br/>
<a href="https://git-scm.com/docs/gitdiffcore">https://git-scm.com/docs/gitdiffcore</a>
</p>
</address>                </article>
            </main>

            <br>
            <br>
            <hr>

                               <ins class="adsbygoogle"
        style="display:block"
        data-ad-format="autorelaxed"
        data-ad-client="ca-pub-6424571640879890"
        data-ad-slot="7867651344"></ins>
   <script>
        (adsbygoogle = window.adsbygoogle || []).push({});
   </script>            
        </div>

        <!-- -->

        <div class="col-md-3">
            <br>
            <form action="-index-.html">
                <div class="input-group">
                    <input class="form-control" type="search" name="q" placeholder="Search for Git" required>
                    <button class="btn btn-primary" type="submit">
                        <i class="bi bi-search"></i>
                    </button>
                </div>
            </form>
            <br>

                            <div class="list-group list-group-flush">
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="giteveryday.html">
                            giteveryday                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitfaq.html">
                            gitfaq                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitformat-bundle.html">
                            gitformat bundle                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitformat-chunk.html">
                            gitformat chunk                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitformat-commit-graph.html">
                            gitformat commit-graph                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitformat-index.html">
                            gitformat index                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitformat-pack.html">
                            gitformat pack                        </a>
                                    </div>
            
            <br>
            <div class="my-3">
                <ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-6424571640879890"
     data-ad-slot="3954319254"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>            </div>
            <br>

            
            
        </div>
    </div>
</div>    <!--/sse-->

    <footer>
        <br>
        <div class="container">
            <div class="row">
                <div class="col">
                    <hr>
                    <div class="row">
                        <div class="col-md-10">
                            <ul class="nav">
                                <li class="nav-item">
                                    <a class="nav-link ps-0" href="https://runebook.dev/">Help us Improve Translation</a>
                                </li>
                                                            </ul>
                        </div>
                        <div class="col-md-2 text-end">
                            <a href="gitdiffcore.html#" class="fs-5" aria-label="Top">
                                <i class="bi bi-arrow-up-square-fill"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br>
    </footer>
    <script src="../../../runebook.js"></script>
</body>

</html>